﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NerdDinner.Core.Entities;

namespace NerdDinner.Core.Repository
{
    public class DinnerRepository
    {
        public void Create(Dinner dinner)
        {
            
        }

        public void Update(Dinner dinner)
        {
            
        }

        public void Delete(Dinner dinner)
        {
            
        }

        public Dinner Fetch(Guid id)
        {
            //ToDo: Retrieve from Database
            return new Dinner("My dinner") {Id = id, Name = "My dinner"};
        }

        public List<Dinner> FetchAll()
        {
            //ToDo: Retrieve from Database
            return new List<Dinner>() {Fetch(Guid.NewGuid()), Fetch(Guid.NewGuid())};
        }


    }
}
